PowerPC needs this because the domain can directly modify the hardware's
"interrupts enabled" bit, and we don't want to patch Linux to replace
all those accesses to use evtchn_upcall_mask instead.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
vcpu_pend_interrupt(v, v->vcpu_info->arch.evtchn_vector);
}
+/* Note: Bitwise operations result in fast code with no branches. */
+#define event_pending(v) \
+ (!!(v)->vcpu_info->evtchn_upcall_pending & \
+ !(v)->vcpu_info->evtchn_upcall_mask)
+
#endif
smp_send_event_check_cpu(v->processor);
}
+/* Note: Bitwise operations result in fast code with no branches. */
+#define event_pending(v) \
+ (!!(v)->vcpu_info->evtchn_upcall_pending & \
+ !(v)->vcpu_info->evtchn_upcall_mask)
+
#endif
*/
extern void send_guest_pirq(struct domain *d, int pirq);
-/* Note: Bitwise operations result in fast code with no branches. */
-#define event_pending(v) \
- (!!(v)->vcpu_info->evtchn_upcall_pending & \
- !(v)->vcpu_info->evtchn_upcall_mask)
-
#define evtchn_pending(d, p) \
(test_bit((p), &(d)->shared_info->evtchn_pending[0]))